-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add support for mcp server instructions #3260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
Okay, here's the translation of the text in the image: Top line (header/title area):
Main text block: Bottom tabs:
|
|
I think this PR is helpful to us. The instructions field can help the LLM understand how to use the tools or resources in our MCP server, especially when the LLM is not particularly intelligent. So when will it be merged? |
…3260) * gemini caching * changeset
|
Hey @qingyuan1109, thank you for your contribution. This implementation looks solid, I'll make some minor changes to get this over the finish line: Also I added a markdown header for the MCP prompt. With these changes this PR is good to go. |

Context
Add support for MCP Server Instructions.
Roo Code can get and display the MCP Server's instructions and add it into the prompts.
The instructions is part of the mcp protocol from version 1.2 of
@modelcontextprotocol/sdkand describes how to use the server and its features, so it can help LLM understand how to use MCP server correctly.Implementation
getInstructionsprovided by the official sdk to obtain the instructions of the mcp server and save it in the arrayconnectionsofMcpHubMcpView.tsxScreenshots
MCP Server definition
|


|
|
How to Test
Get in Touch
[email protected]
Important
Adds support for fetching, displaying, and including MCP server instructions in prompts and UI.
client.getInstructions()inMcpHub.tsand stores them inMcpServer.McpView.tsxunder each server's details.mcp-servers.ts.instructionsfield toMcpServertype inmcp.ts.ServerRowinMcpView.tsxto show instructions if available.This description was created by
for daa5715d12c3178098997371c5dd7efaf25371c0. You can customize this summary. It will automatically update as commits are pushed.